#include <stdio.h>
#include <stdlib.h>

int main (int argc, char const* argv[])
{
    const double PI = 3.1415927;
    int cnt, revolution;
    double diameter, time, dis, ans;

    cnt = 1;
    while (scanf("%lf %d %lf", &diameter, &revolution, &time) != EOF) {
        if (revolution == 0) break;

        dis = PI * diameter * revolution / 12 / 5280;
        ans = dis / (time / 60 / 60);

        printf("Trip #%d: %.2lf %.2lf\n", cnt, dis, ans);
        cnt++;
    }

    return 0;
}
